package xyz.lwm.lazycat.utility.matcher;

class NotMatcher<T> implements Matcher<T> {

    private final Matcher<T> matcher;

    public NotMatcher(Matcher<T> matcher) {
        this.matcher = matcher;
    }

    @Override
    public boolean matches(T target) {
        return !matcher.matches(target);
    }

}
